<template>
  <div class="w1300">
    <div class="flex-xbt">
      <h2>成员</h2>
      <el-button type="primary" @click="onAddMember">添加论文</el-button>
    </div>
    <div class="article-container">
      <div class="article-item flex-yc flex-xbt" v-for="item in 5" :key="item">
        <div>
          <p>
            Efficient vegetative propagation and genetic transformation of
            Russian dandelion (Taraxacum kok-saghyz Rodin) from leaf explants
          </p>
          <div class="flex-yc flex-xbt m-b-12">
            <div class="flex-yc">
              <el-button type="primary" size="small">作者</el-button>
              <span>Industrial Crops & Products</span>
            </div>
            <span class="date">2024</span>
          </div>
          <div class="flex-yc flex-xbt m-b-12">
            <div class="flex-yc introduction">
              <el-button type="primary" size="small">期刊</el-button>
              <span class="content">
                Xue Yang A 1 · Zhonghua Li A B 1 · Jili Ma A · Huan Chen A ·
                Junya He A · Xing Liu A · Yi Zhang A B · Hui Liu A B · De Ye A B
                · Chaorong Tang
              </span>
            </div>
            <span class="date"></span>
          </div>
        </div>
        <div style="display: flex; flex: 1; justify-content: flex-end">
          <el-button type="primary" link>编辑</el-button>
          <el-button type="danger" link>删除</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { computed, reactive, ref } from 'vue'

const formData = reactive({
  date: '',
  keyword: '',
  category: 0,
})

</script>

<style scoped lang="scss">
.gd {
  display: flex;
  border: 1px solid red;
  width: 400px;
  margin-bottom: 10px;
  li {
    width: 100px;
    height: 10px;
    &.active {
      background: red;
    }
    & + li {
      border-left: 1px solid red;
    }
  }
}

.w1300 {
  > .flex-xbt {
    padding-bottom: 20px;
    align-items: flex-end;
    h2 {
      font-size: 32px;
      color: #333;
      font-weight: bold;
    }
  }
  :deep(.el-button--small) {
    background-color: #234fea;
    border-color: #234fea;
  }

  .m-b-12 {
    margin-bottom: 12px;
  }

  .flex-yc {
    align-items: center;

    &.introduction {
      align-items: flex-start;
    }

    span {
      margin-left: 10px;
    }
  }

  padding-top: 55px;

  .search-form {
    width: 313px;
    margin-right: 78px;
  }

  .article-container {
    span {
      font-size: 14px;
      font-weight: 400;

      &.result {
        display: block;
        margin-bottom: 23px;
      }

      &.date {
        width: 40px;
      }

      &.content {
        line-height: 20px;
      }
    }

    p {
      font-weight: 500;
      line-height: 20px;
      padding-bottom: 15px;
    }

    .article-item {
      padding-bottom: 50px;
    }
  }
}
</style>
